﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="default.aspx.cs" Inherits="EmProductCenter.ePweb._default" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title></title>
    <script src="js/jquery-1.4.1.min.js" type="text/javascript"></script>
    <link href="css/xgjj.css" rel="stylesheet" type="text/css" />
</head>
<body style="border-style: none" scroll="no" topmargin="0" leftmargin="0">
    <div class="date_1">
        <div class="date_4" id="dateList">
            <div class="date_4_1">
                <div class="date_4_1_1 fl">
                    <img src="image/daylist_03.gif" width="6" height="22" /></div>
                <div class="date_4_1_2 fl">
                    <div class="date_4_1_4 fl">
                        <img src="image/daylist_05.gif" width="7" height="22" style="cursor: pointer;" onclick="GetThisMonthHtml(1);" /></div>
                    <div class="date_4_1_5 fl">
                        <span id="thisMonth">2011年10月</span></div>
                    <div class="date_4_1_6 fl">
                        <img src="image/daylist_09.gif" width="7" height="22" style="cursor: pointer;" onclick="GetThisMonthHtml(2);" /></div>
                    <div class="date_4_1_7 fl">
                        <img src="image/xgjj_date_24.gif" width="13" height="12" style="cursor: pointer;"
                            onclick="CloseDiv('dateList');" /></div>
                </div>
                <div class="date_4_1_3 fl">
                    <img src="image/daylist_11.gif" width="6" height="22" /></div>
            </div>
            <div class="date_4_2">
                <table border="0" align="center" cellpadding="0" cellspacing="1" id="table_course"
                    style="font-size: 11px; font-family: Verdana; color: #000">
                    <tr>
                        <td width="24" height="15" align="center" valign="middle" style="font-size: 12px;">
                            一
                        </td>
                        <td width="24" height="15" align="center" valign="middle" style="font-size: 12px;">
                            二
                        </td>
                        <td width="24" height="15" align="center" valign="middle" style="font-size: 12px;">
                            三
                        </td>
                        <td width="24" height="15" align="center" valign="middle" style="font-size: 12px;">
                            四
                        </td>
                        <td width="24" height="15" align="center" valign="middle" style="font-size: 12px;">
                            五
                        </td>
                        <td width="24" height="15" align="center" valign="middle" style="font-size: 12px;">
                            六
                        </td>
                        <td width="24" height="15" align="center" valign="middle" style="font-size: 12px;">
                            日
                        </td>
                    </tr>
                    <tr>
                        <td width="24" height="14" align="center" valign="middle">
                            &nbsp;
                        </td>
                        <td width="24" align="center" valign="middle">
                            &nbsp;
                        </td>
                        <td width="24" align="center" valign="middle">
                            &nbsp;
                        </td>
                        <td width="24" align="center" valign="middle">
                            &nbsp;
                        </td>
                        <td width="24" align="center" valign="middle">
                            &nbsp;
                        </td>
                        <td width="24" align="center" valign="middle">
                            01
                        </td>
                        <td width="24" align="center" valign="middle">
                            02
                        </td>
                    </tr>
                    <tr>
                        <td width="24" height="14" align="center" valign="middle" bgcolor="#FFCC33">
                            03
                        </td>
                        <td width="24" align="center" valign="middle" bgcolor="#FFCC33">
                            04
                        </td>
                        <td width="24" align="center" valign="middle">
                            05
                        </td>
                        <td width="24" align="center" valign="middle">
                            06
                        </td>
                        <td width="24" align="center" valign="middle" bgcolor="#FFCC33">
                            07
                        </td>
                        <td width="24" align="center" valign="middle">
                            08
                        </td>
                        <td width="24" align="center" valign="middle">
                            09
                        </td>
                    </tr>
                    <tr>
                        <td width="24" height="14" align="center" valign="middle">
                            10
                        </td>
                        <td width="24" align="center" valign="middle">
                            11
                        </td>
                        <td width="24" align="center" valign="middle">
                            12
                        </td>
                        <td width="24" align="center" valign="middle" bgcolor="#FFCC33" style="color: #03F">
                            13
                        </td>
                        <td width="24" align="center" valign="middle">
                            14
                        </td>
                        <td width="24" align="center" valign="middle">
                            15
                        </td>
                        <td width="24" align="center" valign="middle">
                            16
                        </td>
                    </tr>
                    <tr>
                        <td width="24" height="14" align="center" valign="middle">
                            17
                        </td>
                        <td width="24" align="center" valign="middle">
                            18
                        </td>
                        <td width="24" align="center" valign="middle">
                            19
                        </td>
                        <td width="24" align="center" valign="middle">
                            20
                        </td>
                        <td width="24" align="center" valign="middle">
                            21
                        </td>
                        <td width="24" align="center" valign="middle">
                            22
                        </td>
                        <td width="24" align="center" valign="middle">
                            23
                        </td>
                    </tr>
                    <tr>
                        <td width="24" height="14" align="center" valign="middle">
                            24
                        </td>
                        <td width="24" align="center" valign="middle">
                            25
                        </td>
                        <td width="24" align="center" valign="middle">
                            26
                        </td>
                        <td width="24" align="center" valign="middle">
                            27
                        </td>
                        <td width="24" align="center" valign="middle">
                            28
                        </td>
                        <td width="24" align="center" valign="middle">
                            29
                        </td>
                        <td width="24" align="center" valign="middle">
                            30
                        </td>
                    </tr>
                    <tr>
                        <td width="24" height="14" align="center" valign="middle">
                            31
                        </td>
                        <td width="24" align="center" valign="middle">
                            &nbsp;
                        </td>
                        <td width="24" align="center" valign="middle">
                            &nbsp;
                        </td>
                        <td width="24" align="center" valign="middle">
                            &nbsp;
                        </td>
                        <td width="24" align="center" valign="middle">
                            &nbsp;
                        </td>
                        <td width="24" align="center" valign="middle">
                            &nbsp;
                        </td>
                        <td width="24" align="center" valign="middle">
                            &nbsp;
                        </td>
                    </tr>
                </table>
            </div>
            <div class="date_4_3">
            </div>
        </div>
        <div class="date_2">
            <div class="text_title fl" id="thisday">
                <%=thisdate %>
            </div>
            <div class="date_2_1 fl" onclick="ShowDiv();" style="cursor: pointer;">
                <img src="image/xgjj_date_12_1.gif" width="16" height="18" id="imageShow" /></div>
            <input type="button" id="btn_Detail" value="跳转" style="display: none;" />
        </div>
        <div class="date_3">
            <div class="date_3_1 fl">
                <div class="date_3_1_1 ">
                    申&nbsp;&nbsp;购</div>
                <div class="date_3_1_1 ">
                    上&nbsp;&nbsp;市</div>
                <div class="date_3_1_1 ">
                    中签号</div>
                <div class="date_3_1_1 ">
                    中签率</div>
                <div class="date_3_1_1 ">
                    解&nbsp;&nbsp;冻</div>
            </div>
            <div class="date_3_2 fl">
                <div class="date_3_1_3">
                    <div style="height: 18px; line-height: 18px;" id="shengou">
                        无</div>
                </div>
                <div class="dropdownlist">
                </div>
                <div class="date_3_1_3">
                    <div style="height: 18px; line-height: 18px;" id="shangshi">
                        无
                    </div>
                </div>
                <div class="dropdownlist">
                </div>
                <div class="date_3_1_3">
                    <div style="height: 18px; line-height: 18px;" id="zhongquanhao">
                        无</div>
                </div>
                <div class="dropdownlist">
                </div>
                <div class="date_3_1_3">
                    <div style="height: 18px; line-height: 18px;" id="zhongquanli">
                        无</div>
                </div>
                <div class="dropdownlist">
                </div>
                <div class="dropdownlist">
                </div>
                <div class="date_3_1_3">
                    <div style="height: 18px; line-height: 18px;" id="jiedong">
                        无</div>
                </div>
            </div>
        </div>
    </div>
    <input type="hidden" value="300258" id="hid_GPDM" />
    <script type="text/javascript">
        //跳转
        function GoToDetail(code) {
            $(".dropdownlist").hide();
            $("#hid_GPDM").val(code);
            $("#btn_Detail").click();
        }

        //更多
        function More(indexs) {
            if ($(".dropdownlist").eq(indexs).css("display") == "none") {
                $(".dropdownlist").hide();
                $(".dropdownlist").eq(indexs).show();
            }
            else {
                $(".dropdownlist").hide();
            }
        }

        //生成日历
        function GetThisMonthHtml(preOrnext) {
            $(".dropdownlist").hide();
            var startDate = $.trim($("#thisMonth").html());
            $.ajax({
                type: "POST",
                url: "DataInfo.ashx",
                dataType: "json",
                data: { action: "GetThisMonthHtml", startDate: startDate, preOrnext: preOrnext },
                success: function (result) {
                    $("#table_course").html(result[0]);
                    $("#thisMonth").html(result[1]);
                }
            });
        }

        //打开日历
        function ShowDiv() {
            GetThisMonthHtml(0);
            $("#dateList").show();
            //$("#imageShow").attr("src", "image/xgjj_date_12.gif");
        }

        //关闭日历
        function CloseDiv(id) {
            $("#" + id).hide();
            $("#imageShow").attr("src", "image/xgjj_date_12_1.gif");
        }

        //生成当前天的数据
        function GetThisDayInfo(thisday) {
            $("#thisday").html(thisday);
            $.ajax({
                type: "POST",
                url: "DataInfo.ashx",
                dataType: "json",
                data: { action: "GetThisDayInfo", thisday: thisday },
                success: function (result) {
                    $("#shengou").html(result[0]);
                    $("#shangshi").html(result[1]);
                    $("#zhongquanhao").html(result[2]);
                    $("#zhongquanli").html(result[3]);
                    $("#jiedong").html(result[4]);
                    $(".dropdownlist").eq(0).html(result[5]);
                    $(".dropdownlist").eq(1).html(result[6]);
                    $(".dropdownlist").eq(2).html(result[7]);
                    $(".dropdownlist").eq(3).html(result[8]);
                    var height3 = $(".dropdownlist").eq(3).height();
                    if (height3 > 44) {
                        $(".dropdownlist").eq(3).css("top", 123 - height3);
                    }
                    $(".dropdownlist").eq(4).html(result[9]);
                    $.ajax({
                        type: "POST",
                        url: "DataInfo.ashx",
                        dataType: "json",
                        data: { action: "GetNewDateModel", thisday: thisday },
                        success: function (result) {
                            $("#jiedong").html(result[0]);
                            $(".dropdownlist").eq(4).html(result[1]);
                            var height4 = $(".dropdownlist").eq(4).height();
                            $(".dropdownlist").eq(4).css("top", 145 - height4);
                        }
                    });

                    $(".dropdownlist").hide();
                }
            });
            CloseDiv("dateList");
        }


        $(document).ready(function () {
            GetThisMonthHtml(0);
            var now = new Date();
            GetThisDayInfo();
        });
    </script>
</body>
</html>
